function fenye(currpage){
	window.location="UserServlet?action=show&curr="+currpage;
}

function fenye2(){
	//获得总页数
	var countpage=document.getElementById("totalpage").value;
	var countpage1=parseInt(countpage);
	//获得当前页码
	var page=document.getElementById("inputpage").value;
	var page1=parseInt(page);

	if (page1>=1&&page1<=countpage1) {
		window.location="UserServlet?action=show&curr="+page;
	}else{
		alert("输入的页码超范围")
	}s
}
function edit(id){
	window.location="UserServlet?action=editselect&id="+id;
}
function del(id){
	var flag=confirm("确定要删除吗?");
	if(flag==true){
		window.location="UserServlet?action=delete&id="+id;
	}
}
function changecount(){
	var count=document.getElementById("setCount").value;
	window.location="UserServlet?action=changecount&count="+count;
}